/**
 * Copyright (c) 2020 Gitpod GmbH. All rights reserved.
 * Licensed under the GNU Affero General Public License (AGPL).
 * See License-AGPL.txt in the project root for license information.
 */

html, body, #root, .page-container {
    height:100%;
}

:root {
    --font-color1: #292929;
    --font-color2: #4D4D4D;
    --font-color3: #9F9F9F;
    --brand-color1: #0087BE;
    --brand-color2: #1AA6E4;
    --background-color1: #F7F7F7;
    --background-color2: #FFFFFF;
    --background-color3: #cccccc;

    --lilac-color: #9d7cbf;
    --accent-color: #ffb238;
    --success-color: #37b635;
    --warning-color: #ec1818;

    color: var(--font-color1);
    background-color: var(--background-color1);
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",Arial,sans-serif;
    font-size: 100%;
}

#avatar-menu-button:hover {
    background: transparent;
}

body {
  background-color: transparent !important;
}

a {
    color: var(--brand-color1);
    text-decoration: none;
}
a:hover, a:focus {
    text-decoration: underline;
    color: var(--brand-color1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat";
  font-weight: 400;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  color: var(--font-color1);
}

h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.5rem;
  color: var(--font-color3);
}
h3 {
  font-size: 1.5rem;
  font-weight: 500;
}
h4 {
  font-size: 1rem;
  font-weight: 500;
}
h5, h6 {
  font-size: 30px;
  font-weight: 200;
}

.message kbd {
    display: inline-block;
    vertical-align: middle;
    font-size: 15px;
    line-height: 15px;
    color: var(--font-color2);
    border: 1px solid var(--font-color1);
    border-bottom-color: var(--font-color3);
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 var(--font-color3);
    padding: 3px 4px;
    margin-bottom: 2px;
}

.message code {
    border-radius: 3px;
    margin: 0;
    padding: 0 .2em;
}

.page-container {
    display: flex;
    flex-direction: column;
}

#main {
    width: 100%;
    flex: 1;
}

.content {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 71.25rem;
}

.content.toolbar {
    margin-top: 15px;
    min-height: 60px;
    padding: 0 1.5rem;
}

.content.toolbar .logo {
    width: 120px;
}

.content.toolbar .gitpod-logo {
    width: 120px;
}

.content.toolbar .gitpod-links {
    flex: 1;
    padding-left: 50px;
    font-weight: 500;
}

.content.toolbar .gitpod-links .link-container a {
    color: var(--font-color1);
    text-decoration: none;
    padding: 10px;
}

.content.toolbar .gitpod-links .link-container a.active {
    color: var(--brand-color1);
}

.content.toolbar .user-section {
    width: 130px;
    display: flex;
    justify-content: flex-end;
}

.content-area {
    padding: 1.5rem;
}

.workspace-list .search {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5px;
}

.workspace-list .search .input {
    width: 300px;
    height: 30px;
    font: inherit;
    color: inherit;
    padding: 15px;
}

.workspace-list .search .limit {
    font-size: 0.875rem;
    color: var(--background-color2);
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.workspace-list .search .limit a {
    padding-left: 10px;
}

.workspace-list .search .limit a.active {
    text-decoration: underline;
    cursor: pointer;
}

.workspace-details {
    position: relative;

    margin-bottom: 5px;
    border-left: solid 3px var(--background-color2);
}

.workspace-details.preparing {
    border-left-color: yellow !important;
}
.workspace-details.pending {
    border-left-color: yellow !important;
}
.workspace-details.creating {
    border-left-color: yellow !important;
}
.workspace-details.initializing {
    border-left-color: yellow !important;
}

.workspace-details.running {
    border-left-color: var(--success-color) !important;
    /* box-shadow: 0px 0px 1px var(--success-color) !important; */
}

.workspace-details.stopping {
    border-left-color: yellow !important;
}

.workspace-details.stopped {
    border-left-color: var(--background-color2) !important;
    /* box-shadow: 0px 0px 1px var(--font-color2) !important; */
}

.workspace-details.error {
    border-left-color: var(--warning-color) !important;
    /* box-shadow: 0px 0px 1px var(--warning-color) !important; */
}

.workspace-details .stage {
    display: flex;
}

.workspace-details .fav-column {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.workspace-details .fav-column .fav {
    width: 40px;
    height: 40px;
    color: var(--font-color3);
    cursor: pointer;
    margin-bottom: 12px;
}

.workspace-details .fav-column .fav svg {
    font-size: 40px;
    fill: currentColor;
    width: 1em;
    height: 1em;
}

.workspace-details .fav-column .fav:hover {
    color: var(--brand-color1);
}

.workspace-details .fav-column .fav.active {
    color: var(--brand-color2);
}

.workspace-details .fav-column .fav.active:hover {
    color: var(--brand-color1);
}

.workspace-details .main {
    padding: 20px 20px 20px 0px;
    flex-grow: 1;
}

.workspace-details .title {
    display: flex;
    align-items: center;
}

.workspace-details .button {
    margin-left: 15px;
}

.workspace-details .iconed-detail {
    display: flex;
}

.workspace-details .iconed-detail .icon {
    width: 12px;
    margin-right: 5px;
    padding-top: 2px;
    text-align: center;
}

.workspace-details .iconed-detail .icon svg {
    fill: var(--font-color3);
}

.workspace-details .repoUrl {
    color: var(--font-color1);
    text-decoration: none;
}

.workspace-details .creation-time {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.workspace-details .pending-changes {
    margin-top: 12px;
    padding-top: 4px;
    margin-left: 60px;
}

.workspace-details .repo {
    padding: 20px;
    padding-top: 0px;
}

.workspace-details .repo .head {
    color: var(--brand-color1);
    cursor: pointer;
    user-select: none;
}

.workspace-details .repo .pending-desc {
    align-content: flex-start;
    display: flex;
    align-items: center;
    margin-left: -20px;
}

.workspace-details .repo li {
    padding: 0px;
}

.editable-description .description-field {
    display: flex;
    align-items: center;
}

.editable-description .description-field .description-input.error.focused:after{
    background-color: var(--warning-color);
}

.editable-description .description-input.error input{
    background: #ffaaaa40;
}

.editable-description .description-field h3:hover {
    cursor: pointer;
}

.editable-description .edit-buttons {
    display: flex;
    justify-content: center;
}

.editable-description .edit-buttons .check {
    color: var(--success-color);
}

.editable-description .edit-buttons .cancel {
    color: var(--warning-color);
}

.editable-description .edit-buttons .edit-button {
    visibility: hidden;
    max-height: 48px;
}

.editable-description:hover .edit-button {
    visibility: visible;
}

.editable-description:hover .description-field {
    background: var(--background-color3);
}

footer {
    width: 100%;
    color: var(--font-color1);
    background: var(--background-color1);
    font-weight: 500;
}

footer .container {
    width: 100%;
    max-width: 71.25rem;
    padding: 1.5rem;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .container .row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

footer .container .row > a {
    color: var(--font-color1);
}

footer .container .row > * {
    padding: 8px;
}

footer .container .row.gitpod-links > * {
    padding: 10px;
}

footer .logo-icon {
    height: 20px;
}

/* start */
.start {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: var(--background-color1);
}

.start .progress {
    position: absolute;
    top: 0px;
    height: 10px;
    right: 0px;
    left: 0px;
}
.start .progress .runner {
    height: 100%;
    background-color: var(--brand-color2);
}

.start canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#bootanimation {
    position: absolute;
}

.gitpod-boot-logo-div {
    width: 100%;
    height: 100%;
    position: absolute;
}

.gitpod-boot-logo-div .gitpod-boot-logo {
    display: block;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    top: 35%;
    width: 150px;
    height: 150px;
}

.start.error {
    background-image: url('./images/error.png');
}

.start .message {
    height: 15vh;
    font-size: 14px;
    position: absolute;
    top: 30vh;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    z-index: 1001;
}

.start .message.stopped-reason {
    top: 39vh;
}

.start .message .start-action {
    margin: 20px 0;
}

.start .message .start-action .button {
    margin: 0 20px;
}

.start .error.message {
    top: 43vh;
    width: 90vw;
    color: #f55;
    user-select: all;
    z-index: 1001;
}

.start .log .phase {
    top: 35vh;
}

.start .log .log-container {
    position: absolute;
    width: 80%;
    top: 67vh;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.start .log .log-container .link-to-doc {
    text-align: right;
    font-size: 12px;

    margin-bottom: 2px;
}
.start .log .log-container .link-to-doc a:visited {
    color: white;
}

.start .log .log-container .xterm-log {
    position: relative;
    z-index: 1000;  /** More than 999 to cover the browser-extension overlay */
    height: 27vh;
    max-height: 27vh;
    text-align: center;

    box-sizing: content-box;
    padding: 0.5em;
    border-radius: 1px;

    background-color: var(--background-color2);
}

.start .pro-tip.message {
    top: 80%;
    border-radius: 10px;
    height: unset;
    position: relative;
    padding: 10px;
    font-size: 17px;
    align-items: center;
    font-weight: 300;
}

.start .pro-tip strong {
    font-weight: 400;
}

.start .pro-tip a {
    font-weight: 400;
}
.start .pro-tip .button {
    margin: 20px;
    font-weight: 400;
}

.start .productivity-tip {
    position: absolute;
    top: 80%;
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.start .pro-tip .background{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.start .pro-tip .image {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    height: 56px;
}

.start .pro-tip .image .url-animation {
    position: absolute;
    top: 25px;
    left: 32px;
    font-size: 13px;
}

.start .pro-tip .image .url-animation .cursor {
  animation: blink 1s  infinite;
  border-left: 1px solid ;
  width: 1px;
  height: 20px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.create-new {
    padding: 20px 20px 20px 84px;
}

.create-new > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gc-message {
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invisible {
    display: none;
}

/** sorry */
.sorry {
    margin-top: 100px;
}
.sorry > h3 {
    color: var(--font-color2);
}
.sorry > h1, .sorry > h2, .sorry > h3 {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* subscription */
.subscription-section {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    flex-grow: 1;
    flex-basis: 45%;
    border-radius: 4px;
}
.subscription .button {
    margin-top: 1em;
    margin-left: 1em;
    margin-bottom: 1em;
}
.card-features {
    float: left;
    text-align: left;
}
.card-btn-icon {
    color: var(--brand-color1);
    margin-left: 0.2em;
}
.plan-card {
    text-align: center;
    width: 260px;
    height: 100%;
    padding: 10px 20px 20px 20px;
}

/* Credit */
.credits-section {
    margin-bottom: 10px;
    flex-grow: 1;
    flex-basis: 100%;
}

.remaining-hours-text {
    white-space: 'nowrap';
    overflow: 'auto';
}
.remaining-hours-good {
    display: inline;
    padding-left: 0.5em;
}

/* team subscriptions */
.team-subscriptions-section {
    margin-bottom: 10px;
    margin-right: 10px;
    flex-grow: 1;
    flex-basis: 45%;
}
.team-subscriptions-send {
    display: flex;
    justify-content: space-between;
}
#buy-dialog-content {
    padding-bottom: 6px;
}

.tos-frame {
    width: 100%;
    height: 60vh;
    border: none;
    overflow-y: scroll
}
.tos-buttons {
    padding-top: 1em;
}
.tos-buttons .button {
    margin-left: 1em;
}

.tos-content li, .tos-content p {
    line-height: 1.4;
    font-size: 16px;
}

.loading-skeleton {
    background-color: var(--background-color2) !important;
    box-shadow:  none !important;
    border-radius: 5px;
    border-width: 0 !important;
}
.loading-skeleton.dummy {
    min-height: 30px;
}
.loading-skeleton.box-dummy {
    min-height: 285px;
}

/* login */

.login-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.login-header {
    margin-bottom: 10px;
    margin-right: 10px;
    flex-basis: 100%;
    text-align: center;
}

.login-buttons-container {
    margin-bottom: 10px;
    margin-right: 10px;
    flex-grow: 1;
    flex-basis: 100%;
    text-align: center;
}

.login-buttons-container > button {
    margin: 10px;
}

.provider-icon {
    margin-right: 12px;
    vertical-align: text-bottom;
    width: 30px;
    height: 30px;
}


.license-invalid {
    background-color: #f55 !important;
}

.license-overstretched {
    background-color: #ffa000 !important;
}

/* upgrade for private repository */
.private-upgrade {
    position: relative;
    max-width: 71.25rem;
}
.private-upgrade .button {
    margin-left: 1em;
}
.private-upgrade .create-workspace {
    margin-top: 3em;
}
.private-upgrade .label {
    margin-left: 1em;
    display: flex;
    align-items: center;
}
.private-upgrade-expandables p {
    margin-top: 0px;
    margin-bottom: 0px;
}

.private-upgrade-expandables .expansion-panel {
    border-color: var(--brand-color2);
}

.private-upgrade-expandables .expansion-panel-summary#grant-access {
    cursor: default;
}

.private-upgrade li {
    margin: 30px;
}

/* upgrade for more Gitpod Hours */
.upgrade-hours {
    position: relative;
    max-width: 71.25rem;
}
.upgrade-hours .button {
    margin-left: 1em;
}

/* ----------------------------------------- */
/* ----- Access Control ----- */
/* ----------------------------------------- */

@media(max-width: 620px) {
    .access-control__card {
        padding: 20px 10px !important;
    }
}


.access-control__card-container {
    width: 31%;
    min-width: 300px;
    margin-bottom: 30px !important;
}

@media(max-width: 340px) {
    .access-control__card-container {
        min-width: 280px;
    }
}